package com.itheima.array;

public class Demo4 {
    public static void main(String[] args) {
        int[][] arr = new int[2][];
        int[] arr1 = {1, 2};
        int[] arr2 = {3, 4, 5};
        arr[0] = arr1;
        arr[1] = arr2;
        for (int i = 0; i < arr.length; i++) {
            for (int i1 = 0; i1 < arr[i].length; i1++) {
                System.out.print(arr[i][i1] + " ");
            }
            System.out.println();
        }
    }
}
